package com.lemon.soft.bookingroom.service.impl;

import com.lemon.soft.bookingroom.util.PageUtils;
import com.lemon.soft.bookingroom.util.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


import com.lemon.soft.bookingroom.dao.MeetingRoomsDao;
import com.lemon.soft.bookingroom.entity.MeetingRoomsEntity;
import com.lemon.soft.bookingroom.service.MeetingRoomsService;


@Service("meetingRoomsService")
public class MeetingRoomsServiceImpl extends ServiceImpl<MeetingRoomsDao, MeetingRoomsEntity> implements MeetingRoomsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<MeetingRoomsEntity> page = this.page(
                new Query<MeetingRoomsEntity>().getPage(params),
                new QueryWrapper<MeetingRoomsEntity>()
        );

        return new PageUtils(page);
    }

}